<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Take the integer part of nth root</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.gmp-root" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">gmp_root</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.6.0, PHP 7)</p><p class="refpurpose"><span class="refname">gmp_root</span> &mdash; <span class="dc-title">Take the integer part of nth root</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.gmp-root-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>gmp_root</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.gmp.html" class="type GMP">GMP</a></span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$nth</code></span>
   ) : <span class="type"><a href="class.gmp.html" class="type GMP">GMP</a></span></div>

  <p class="para rdfs-comment">
   Takes the <code class="parameter">nth</code> root of <code class="parameter">a</code> and
   returns the integer component of the result.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.gmp-root-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">a</code></dt>

     <dd>

      <p class="para">可以是一个 GMP
数据 <span class="type"><span class="type resouce">resouce</span></span>，或一个可以转换为数值的字符串。</p> 
     </dd>

    
    
     <dt>
<code class="parameter">nth</code></dt>

     <dd>

      <p class="para">
       The positive root to take of <code class="parameter">a</code>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.gmp-root-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The integer component of the resultant root, as a GMP number.
  </p>
 </div>

</div></div></div></body></html>